package cn.johnyu.base.dao;

import cn.johnyu.base.model.Publisher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
@Mapper
public interface PublisherDao {

    List<Publisher> findAll();
    Publisher findById(@Param("id") Integer id);
    void save(Publisher publisher);
    void update(Publisher publisher);
    void delete(Integer id);

}
